normal gg
let n=search("goto ERROR", 'W')
silent exe '0,'. n .'d'

let str= "if %1=='INFINITI' goto BUILD_NOVANTO_NISSAN_INFINITI_DCM\n"
silent put = str
let str= "if %1=='L42L' goto BUILD_NOVANTO_NISSAN_DFL_DCM\n"
silent put = str
let str= "if %1=='DFL' goto BUILD_NOVANTO_NISSAN_DFL_DCM\n"
silent put = str
let str= "if %1=='NCIC' goto BUILD_NOVANTO_NISSAN_DFL_DCM\n"
silent put = str


normal gg
while search('notepad builderr.txt', 'w') > 0
    normal dd
endwhile

normal gg
let n=search('pause', 'W')
normal dd

wq
